#ifndef sim_H_GUARD
#define sim_H_GUARD

#include "pcb.h"

#define CONTEXTTIME 1

/* holds global clock */
extern unsigned clock;
extern unsigned last_clock;

extern int debug;

typedef enum Event
{
   TERMPROC=1,  /* program terminated */
   TERMSLICE, /* program slice is done */
   IOSTART,  /* io operation started */
   IOCOMPLETE,  /* io operation completed */
   PROCESSSTART /* new program started */
}Event;


/* returns 1 if program is complete */
int isProgramComplete(PCB* program);

#endif


